<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar Menu -->
        <% var menuData = [{
            i:0,
            icon:"fa-home",
            title:"首页",
            path:"/",
            power:0
        },{
            i:1,
            icon:"fa-link",
            title:"商品信息管理",
            path:"/pro",
            power:0
        },{
            i:2,
            icon:"fa-link",
            title:"用户信息管理",
            path:"user",
            power:1
        },{
            i:3,
            icon:"fa-shopping-cart",
            title:"购物车信息管理",
            path:"/cart",
            power:1
        },{
            i:4,
            icon:"fa-link",
            title:"订单信息管理",
            path:"/order",
            power:1
        },{
            i:5,
            icon:"fa-link",
            title:"轮播图管理",
            path:"/banner",
            power:0
        },{
            i:6,
            icon:"fa-link",
            title:"收货地址管理",
            path:"/address",
            power:1
        }] %>
        <ul class="sidebar-menu" data-widget="tree">
            <% for(var i=0;i<menuData.length;i++){ %>
                <% if(power >= menuData[i].power){ %>
                    <li class="<%= index===menuData[i].i ? 'active' : '' %>"><a href="<%= menuData[i].path %>"><i class="fa <%= menuData[i].icon %>"></i> <span><%= menuData[i].title %></span></a></li>
                <% } %>
            <% } %>
        </ul>
        <!-- /.sidebar-menu -->
    </section>
<!-- /.sidebar -->
</aside>